package com.friday.dao;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface StockDao {

    JSONObject getPlantById(int id);

    JSONArray getAllPlant();

    JSONArray getPlantProdByPId(int id);

    JSONArray getAllInstock();

    JSONArray getAllOutstock();

    int delInstock(int id);

    int delOutstock(int id);

    int addInstock(JSONObject instock);

    int addOutstock(JSONObject outstock);

    JSONArray getStockRecordByPId(int id);

    int reduceStock(JSONObject record);

    JSONArray getProdStock(int goods_id);

    JSONArray getInstock(int id);

    JSONArray getOutstock(int id);


}
